package com.ibeeking.gmc.global.service.common.dos;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * @ClassName TenantDo
 * @Description
 * @Author ibeeking
 * @Date 2020-12-24 09:21
 **/
@Data
@TableName("gmc_tenant")
@Accessors(chain = true)
@ToString
public class TenantDO implements Serializable {

    private static final long serialVersionUID = 1L;


    @TableId(value = "id" , type = IdType.AUTO)
    private Integer id;

    /**
     * 所属集团
     */
    @TableField(value = "parent_id")
    private Long parentId;
    /**
     * 行业类型:mall=电商平台；mdi=制造业
     */
    @TableField(value = "industry")
    private String industry;

    /**
     * 租户编码
     */
    @TableField(value = "code")
    private String code;

    /**
     * 租户名称
     */
    @TableField(value = "name")
    private String name;

    /**
     * SempleName
     */
    @TableField(value = "semple_name")
    private String sempleName;

    /**
     * 主体公司
     */
    @TableField(value = "company")
    private String company;

    /**
     * 租户类型
     */
    @TableField(value = "tenant_type")
    private Integer tenantType;

    /**
     * 经营类目
     */
    @TableField(value = "business_category")
    private Integer businessCategory;

    /**
     * 所在省
     */
    @TableField(value = "province")
    private Long province;

    /**
     * 所在城市
     */
    @TableField(value = "city")
    private Long city;

    /**
     * 所在区/县
     */
    @TableField(value = "county")
    private Long county;

    /**
     * 所在街道/镇
     */
    @TableField(value = "street_town")
    private Long streetTown;

    /**
     * 经营地址
     */
    @TableField(value = "address")
    private String address;

    /**
     * 联系人
     */
    @TableField(value = "contacts")
    private String contacts;

    /**
     * 联系人手机号，需要验证，要作为初始化登录账号
     */
    @TableField(value = "mobile")
    private String mobile;

    /**
     * 联系人电话2
     */
    @TableField(value = "phone")
    private String phone;

    /**
     * 联系邮箱
     */
    @TableField(value = "email")
    private String email;

    /**
     * 账户期限开始
     */
    @TableField(value = "account_begin")
    private LocalDate accountBegin;

    /**
     * 账户期限结束
     */
    @TableField(value = "account_end")
    private LocalDate accountEnd;


    /**
     * 租户介绍
     */
    @TableField(value = "introduce")
    private String introduce;

    /**
     * 租户Logo图片路径
     */
    @TableField(value = "logo")
    private String logo;

    /**
     * 排序
     */
    @TableField(value = "sort")
    private Integer sort;

    @TableField(value = "init")
    private Integer init;
    /**
     * 扩展信息
     */
    @TableField(value = "extend_info_json")
    private String extendInfoJson;

    /**
     * 是否启用，1-启用，0-禁用
     */
    @TableField(value = "publish_status")
    private Integer publishStatus;

    @TableField(value = "create_time")
    private LocalDateTime createTime;

    @TableField(value = "create_by")
    private Long createBy;

    @TableField(value = "modify_time")
    private LocalDateTime modifyTime;

    @TableField(value = "modify_by")
    private Long modifyBy;

    @TableField(value = "del_status")
    private Integer delStatus;


}
